#include <stdio.h>
#include "zlog.h"

int main(int argc, char** argv)
{
    int ret;
    ret = dzlog_init("zlog.conf", "logger");
    if (ret != 0)
    {
        printf("init failed\n");
        return -1;
    }

    dzlog_debug("zlog debug");
    dzlog_info("zlog info");
    dzlog_warn("zlog warn");
    dzlog_notice("zlog notice");
    dzlog_error("zlog error");
    dzlog_fatal("zlog fatal");

    zlog_fini();

    return 0;
}
